﻿<navigation:Page xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
  x:Class="AdventureWorksApp.Home" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"  
  Style="{StaticResource PageStyle}" Unloaded="Page_Unloaded">

    <Grid x:Name="LayoutRoot">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">

            <StackPanel 
          x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">

                <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
                           Text="{Binding Path=Strings.HomePageTitle, Source={StaticResource ApplicationResources}}"/>

                <Grid>
                    
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="2" />
                        <ColumnDefinition Width="99*" />
                        <ColumnDefinition Width="2" />
                    </Grid.ColumnDefinitions>
                    
                    <Grid.RowDefinitions>
                        <RowDefinition Height="32" />
                        <RowDefinition Height="99*" />
                    </Grid.RowDefinitions>
                    
                    <StackPanel 
                        Grid.Column="1" Grid.Row="0"
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                        FlowDirection="LeftToRight" Orientation="Horizontal">
                        <sdk:Label 
                            Content="User Id = " 
                            Margin="2,8" Width="60" HorizontalAlignment="Left"/>
                        <TextBox 
                            Name="_UidNameTextBox"
                            Margin="2,2" Width="180" Height="24" HorizontalAlignment="Left" 
                            IsReadOnly="True" />
                    </StackPanel>

                    <StackPanel 
                        Grid.Column="1" Grid.Row="1"
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                        FlowDirection="LeftToRight" Orientation="Vertical">
                        
                        <TextBlock 
                            VerticalAlignment="Center" 
                            Text="User Roles" 
                            Style="{StaticResource ApplicationNameStyle}"></TextBlock>
                        <sdk:DataGrid 
                            x:Name="_grid"                        
                            HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                            Height="Auto" MinHeight="100"
                            Width="Auto" MinWidth="100"
                            IsReadOnly="False"
                            >
                            
                        </sdk:DataGrid>
                        
                    </StackPanel>

                </Grid>

            </StackPanel>

        </ScrollViewer>
    </Grid>

</navigation:Page>